<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{{ .title }}</title>
	{{template "common_head.html" }}
</head>
<body>
	<div id="test" style="width: 100px; height: 100px; background-color: #8d8d8d;color: red; font-size: 32;">点击测试ws</div>
</body>
</html>
{{template "common_foot.html" }}
<script>
	$("#test").click(function () {
		//发送到test路由（cmd）
		wsSend("test", {"name":"测试一下"}, function (data) {
			//接收服务器返回的信息
			console.log("test 接口回调",data.data.name)
		})
	})
	registerCallbackFunc("take",function (data) {
		console.log("监听 take cmd",data)
	})
</script>

